<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link type="text/css" rel="stylesheet" href="css/project.css"/>
</head>
<body onload="initData()">

    <div id="zhezhao">1
    </div>

    <p align="center">
        学号：<input type="text" id="xh" style="width: 80px;" />&nbsp;
        姓名：<input type="text" id="xm" style="width: 80px;"/>&nbsp;
        年级：<select id="nj">
                <option value="-1">--请选择--</option>
              </select>
        <input type="button" value="查询" onclick="search()" />
        <input type="button" value="新增" onclick="insert()" />
    </p>
    <table border="1" width="450" align="center">
        <tbody id="gwc">
        <tr>
           <th>学号</th>
           <th>姓名</th>
           <th>年级</th>
           <th>操作</th> 
        </tr>
        </tbody>
    </table>

    <div id="ceng">
        <table border="1">
            <tr>
                <th colspan="2" id="bt">新增信息</th>
            </tr>
            <tr>
                <td>学号：</td>
                <td>
                    <input type="text" id="stuNo" />
                </td>
            </tr>
            <tr>
                <td>姓名：</td>
                <td>
                    <input type="text" id="stuName" />
                </td>
            </tr>
            <tr>
                <td>年级：</td>
                <td>
                    <select id="cengNj" style="width: 100%;">
                        <option value="-1">--请选择--</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="button" value="保存" onclick="save()" />
                    <input type="button" value="取消" onclick="cancel()" />
                </td>
            </tr>
        </table>
    </div>
    <p style="text-align: center;">
        <!-- 首页 上一页 下一页 末页  当前第几页 / 共几页 跳转几页go [每页显示几条] -->
        <a href="javascript:void(0)" onclick="firstPageFn()">首页</a>&nbsp;
        <a href="javascript:void(0)" onclick="prevPageFn()">上一页</a>&nbsp;
        <a href="javascript:void(0)" onclick="nextPageFn()">下一页</a>&nbsp;
        <a href="javascript:void(0)" onclick="lastPageFn()">末页</a>&nbsp;
        当前第<span id="pn"></span>页 / 共<span id="lp"></span>页&nbsp;
        跳转<input type="number" min="1" id="currentPage" style="width: 30px;"/>页<input type="button" value="go" onclick="gotoPageFn()" />&nbsp;
        每页显示
        <select onchange="changePageSize(this)">
            <option value="3">3</option>
            <option value="5">5</option>
            <option value="10">10</option>
        </select>
        条
    </p>
    <script type="text/javascript" src="js/project.js" ></script>
</body>
</html>